﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Tradex.Messages {
    /// <summary>
    /// A RequestResponse message is a message acting as container for another message that is
    /// sent as part of the response stream for a request for historical / non-life data.
    /// </summary>
    [Serializable ()]
    public sealed class RequestResponseMessage : Message {

        /// <summary>
        /// Public Constructor taking all parameters.
        /// </summary>
        /// <param name="message"></param>
        public RequestResponseMessage(Message message) {
            Message = message;
        }

        /// <inheritdoc />
        public override MessageCode Code { get { return MessageCode.RequestResponse; } }

        /// <summary>
        /// Gets the inner message.
        /// </summary>
        public Message Message { get; private set; }

    }
}
